package cc.wsyw126.java.stream;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

/**
 * Created by junpeng.yang on 16/8/24.
 */
public class FinfLongestLine {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("/Users/yangdp/Desktop/新增任务.txt"));
        int longest = br.lines().
                mapToInt(String::length).
                max().
                getAsInt();
        br.close();
        System.out.println(longest);

    }
}
